// 终端信息
export default {
	namespaced: true,
	state: {
		hospId: "", //医院ID
		hospName: "", //医院名称
		hospLogo: "", //医院log
		medInsBusinessInfo: "",
		yboperno: "",
		terminfo: {},
		orginfo: {},
		seceninfo: [],
		funcinfo: [], //首页配置项数组
		loginConfs: [],
		deviceConfs: [],
		ipAddress: '',
		payConfs: [], //支付类型
		cardConfs: [] ,//刷卡类型
		reportWordk:''//公告
	},
	getters: {

	},
	mutations: {
		updatedeviceConfs(state, deviceConfs) {
			state.deviceConfs = deviceConfs;
		},
		updateloginConfs(state, loginConfs) {
			state.loginConfs = loginConfs;
		},
		updateyboperno(state, yboperno) {
			state.yboperno = yboperno;
		},
		updatemibusinessinfo(state, mibusinessinfo) {
			state.medInsBusinessInfo = mibusinessinfo;
		},
		updateorginfo(state, orginfo) {
			state.orginfo = orginfo;
		},
		updatehospLogo(state, hospLogo) {
			state.hospLogo = hospLogo;
		},
		updatehospName(state, hospName) {
			state.hospName = hospName;
		},
		updatehospId(state, hospId) {
			state.hospId = hospId;
		},
		updateterminfo(state, terminfo) {
			state.terminfo = terminfo;
		},
		updateseceninfo(state, seceninfo) {
			state.seceninfo = seceninfo;
		},
		updatefuncinfo(state, funcinfo) {
			state.funcinfo = funcinfo;
		},
		updateipAddress(state, ipAddress) {
			state.ipAddress = ipAddress;
		},
		updatepayConfs(state, payConfs) {
			state.payConfs = payConfs;
		},
		updatecardConfs(state, cardConfs) {
			state.cardConfs = cardConfs;
		},
		updateReportWordk(state, reportWordk) {
			state.reportWordk = reportWordk;
		}
	},
	actions: {
		updatedeviceConfs({
			commit
		}, deviceConfs) {
			commit('updatedeviceConfs', deviceConfs)
		},
		updateloginConfs({
			commit
		}, loginConfs) {
			commit('updateloginConfs', loginConfs)
		},
		updateyboperno({
			commit
		}, yboperno) {
			commit('updateyboperno', yboperno)
		},
		updatemibusinessinfo({
			commit
		}, mibusinessinfo) {
			commit('updatemibusinessinfo', mibusinessinfo)
		},
		updateorginfo({
			commit
		}, orginfo) {
			commit('updateorginfo', orginfo)
		},
		updatehospLogo({
			commit
		}, hospLogo) {
			commit('updatehospLogo', hospLogo)
		},
		updatehospName({
			commit
		}, hospName) {
			commit('updatehospName', hospName)
		},

		updatehospId({
			commit
		}, hospId) {
			commit('updatehospId', hospId)
		},

		updateterminfo({
			commit
		}, terminfo) {
			commit('updateterminfo', terminfo)
		},
		updateseceninfo({
			commit
		}, seceninfo) {
			commit('updateseceninfo', seceninfo)
		},
		updatefuncinfo({
			commit
		}, funcinfo) {
			commit('updatefuncinfo', funcinfo)
		},
		updateipAddress({
			commit
		}, ipAddress) {
			commit('updateipAddress', ipAddress)
		},
		updatepayConfs({
			commit
		}, payConfs) {
			commit('updatepayConfs', payConfs)
		},
		updatecardConfs({
			commit
		}, cardConfs) {
			commit('updatecardConfs', cardConfs)
		},
		updateReportWordk({
			commit
		}, reportWordk) {
			commit('updateReportWordk', reportWordk)
		}
	}
}
